package ${entity.packageName}.bean;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gonsin.venus.base.interfaces.bean.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * ${entity.entityLabel}
 * Created  ${entity.createTime}.
 */
@Data
@ToString
@ApiModel("${entity.entityLabel}")
@Entity
@Table(name = "${config.tablePrefix}${entity.dbTableName}")
@TableName("${config.tablePrefix}${entity.dbTableName}")
@TableComment("${entity.entityLabel}")
public class ${entity.entityName}Bean extends BaseBean {

    @Id
    @TableId("${entity.entityNameUnderline}_key")
    @Column(name = "${entity.entityNameUnderline}_key", columnDefinition = "varchar(64) comment '主键'")
    @ApiModelProperty("主键")
    private String ${entity.entityNameFirstLower}Key;          

    <#list entity.fieldList as f>@Column(name = "${f.nameUnderline}", columnDefinition = "${f.dbType}")
    @ColumnComment("${f.comment}")
    @ApiModelProperty("${f.comment}")
    private ${f.type} ${f.name};

    </#list>
}

